﻿using System.Globalization;
using Nancy;
using Nancy.ViewEngines.Razor;

namespace NancyCore.Demo
{
    public class HomeModule : NancyBase.BaseWebApi
    {
        public HomeModule():base("/Home")
        {
            Get("/", args => this.View["Index"]);

            Get("/cultureview", args => View["CultureView"]);

            Get("/cultureviewgerman", args =>
            {
                this.Context.Culture = new CultureInfo("de-DE");
                return View["CultureView"];
            });
        }
    }
}